package com.dragon.design.principle.dependenceinversion;

/**
 * 依赖倒置原则
 *
 * @author dragon
 * @version V1.0.0-RELEASE
 * @date 2019/5/15 11:46
 */
public class Test {

    public static void main(String[] args) {
        Course javaCourse = new JavaCource("java课程");
        Course pythonCourse = new PythonCource("python课程");
        Dragon dragon = new Dragon();
        dragon.studyCourse(javaCourse);
        dragon.studyCourse(pythonCourse);
    }
}
